package com.yanqu.road.logic.pb;

import com.yanqu.road.entity.autodata.chuhan.data.CrossChuHanPatrons;
import com.yanqu.road.entity.player.CrossUserBaseInfo;
import com.yanqu.road.pb.activity.ChuHanProto;
import com.yanqu.road.pb.worldmessage.WorldMessageProto;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CrossChuHanPb {

    public static Map<Integer, CrossChuHanPatrons> parseCrossChuHanPatrons(List<ChuHanProto.ChuHanPatronsTempMsg> msgList) {
        Map<Integer, CrossChuHanPatrons> patronsMap = new ConcurrentHashMap<>();
        for (ChuHanProto.ChuHanPatronsTempMsg msg : msgList) {
            patronsMap.put(msg.getId(), new CrossChuHanPatrons(msg.getId(), msg.getSkin(), msg.getAbility()));
        }
        return patronsMap;
    }
}
